﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Kkc.Model;

namespace Kkc.Application.Specifications.Announcements
{
    public class ExpiredAnnouncementSpecification: GenericSpecification<Announcement>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ExpiredAnnouncementSpecification"/> class.
        /// </summary>
        public ExpiredAnnouncementSpecification()
            : base(a => a.ExpirationDate.HasValue && a.ExpirationDate.Value < DateTime.Now)
        {
        }
    }
}